import {LinkOption} from "./LinkOption";
import {RequestOption} from "./RequestOption";

type Success = (res: GenernalCallBack) => void
type Error = (error: GenernalCallBack) => void
type Result = (result: ParseCallBack) => void


export interface Option {
    link_option: LinkOption;
    request_option: RequestOption;
    success: Success;
    error: Error;
}

interface GenernalCallBack {
    resultCode: number;
    msg: String;
}

interface ParseCallBack {
    msg: String;
}

export interface ParseOption {
    frame: String;
    result: Result;
}


